Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store data to buffers in default WebSocket protocol #728

Closed
wants to merge 3 commits into from

Conversation

lautis
Copy link

@lautis lautis commented Jan 25, 2012

Properly detect 0xFF as end-of-message marker. This makes sure that partial UTF-8 characters (signle character is splitted in multiple data chunks) or code points outside BMP do not cause connection breakages.

This is partial fix for #699. Emojis don't cause disconnection, but characters outside Basic Multilingual Plane are not decoded properly.

Properly detect 0xFF as end-of-message marker.
This makes sure that partial UTF-8 characters or
code points outside BMP do not cause connection
breakages (although they are still not decoded
correctly).
@einaros
Copy link
Contributor

einaros commented Jan 25, 2012

Would you mind adding a test case which captures the original issue?

@lautis
Copy link
Author

lautis commented Jan 25, 2012

I didn't look as thoroughly as I should've for how to write tests. Added test cases for parsing single character splitted in multiple data chunks and non-BMP characters inside single buffer.

@einaros
Copy link
Contributor

einaros commented Jan 25, 2012

Great, that looks much better. Thank you!

@baudehlo
Copy link

Ah I just submitted a different work-around to this bug. This looks like it is probably a better fix.

@rauchg
Copy link
Contributor

rauchg commented Dec 9, 2013

Switching to ws for this.

@rauchg rauchg closed this Dec 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants